package com.yznote.cloudesk.message.mapper;

import com.yznote.cloudesk.common.pojo.Friend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
/**
 * @author : xiaozhoutongxue
 * @date : 2022/10/20 23:21
 */

@Mapper
@Component
public interface FriendMapper {
    Friend getFriendMessage(Long userId,Long friendUserId);
    int tryInsertFriend(Friend friend);
    List<Friend> queryInsertFriend(Long userId);
    int insertFriend(Friend friend);
    int updateFriendNotes(Friend friend);
    int updateFriendStatus(Friend friend);

    List<Friend> getblackoutedFriendList(Long userId);
}
